
<!--
/**************************************************
* @ orderemergencydetail.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/04/13, owen
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hitrust.gs.business.GSOperatorProcessor"%>
<%@ include file="../../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>

<html>
<head>
<title>应急采购单信息</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<!--<LINK href="<%=root%>/css/css.css" type=text/css rel=stylesheet>-->
<LINK href="<%=root%>/css/caigouxitong.css"" type=text/css rel=stylesheet>
<style type="text/css">
<!--
..top {
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
..bg_table {
	BACKGROUND-COLOR: #135131;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
-->
</style>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<%

//	ResultProcess tGSProvider = (ResultProcess)request.getAttribute("ordermanufacture");
	ArrayList tList = (ArrayList)request.getAttribute("ordermanufacture");
	String[] tStr = (String[])request.getAttribute("curorderdetail");
	GSTempOrderBean tBean = (GSTempOrderBean)request.getAttribute("Emergencyorderbean");
%>
<script language="JavaScript">
	var counter;
	function process(val){
		if(val == 'F'){
			ordermanufacturevdetail.action = "<%=response.encodeURL(root+"/A100401.do")%>";
		}else if(val == 'P'){
				if(confirm("是否确定打印？")){
					print_bill();//ordermanufacturevdetail.action = "<%=response.encodeURL(root+"/A100305.do")%>";			
				}else{
					return false;
				}
		}
		ordermanufacturevdetail.submit();
	}

	function window_beforeprint()
	{
		document.all.noprint.style.display="none";
	}
	
	function window_afterprint()
	{
		document.all.noprint.style.display="";
	}

</script>
</head>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onbeforeprint="return window_beforeprint()" onafterprint="return window_afterprint()">
<form name="ordermanufacturevdetail" method="post" >
<input type="hidden" name="orderId" value="<%=tBean.getOrderTempId() %>">
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td height="20">
			<table width="100%" border="0" cellspacing="0" cellpadding="1">
				<tr height="20">
					<td height="30" width="758" class="mtxt_black">应急采购单信息</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<!--<td class="bg_line" height="2"></td>-->
		<td height="2"><hr color="gray"></td>
	</tr>
</table>
<br>
	<center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
    <td>
    <table class=bg_table id=tableId cellspacing=0 cellpadding=1 width=100% align=center border=0>
    <tbody>
	
	<tr class="bg_row_odd" height="20">
		<td class="top" width="13%" align="center">订货单位</td>
		<td class="top" width="20%"><div class="txt_content" align="left"><%=GSBaseManager.getOrderDeptName(tBean.getWorkcorpId())%>&nbsp;</div></td>
		<td class="top" width="13%" align="center">配送方式</td>
		<td class="top" width="20%"><div class="txt_content" align="left"><%=tBean.getDeliverMode()==null? "":GSBaseManager.getDeliverModeName(tBean.getDeliverMode())%>&nbsp;</div></td>
		<td class="top" width="13%" align="center">结算方式</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getBalanceMode() == null? "":GSBaseManager.getBalanceModeName(tBean.getBalanceMode())%>&nbsp;</div></td>
	</tr>
	<tr class="bg_row_odd" height="20">
		<td class="top" width="13%" align="center">送货单号</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getDeliverGoodsId()%>&nbsp;</div></td>	
		<td class="top" width="13%" align="center">签收日期</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getSignInDate()%>&nbsp;</div></td>	
		<td class="top" width="13%" align="center">签收人</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getSignInPerson()%>&nbsp;</div></td>	
	</tr>
	<tr class="bg_row_odd" height="20">
		<td class="top" width="13%" align="center">送货地址</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getDeliverGoodsAddr()%>&nbsp;</div></td>	
		<td class="top" width="13%" align="center">联系人</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getOrdercontactname()%>&nbsp;</div></td>	
		<td class="top" width="13%" align="center">联系电话</td>
		<td class="top"><div class="txt_content" align="left"><%=tBean.getOrdercontactphone()%>&nbsp;</div></td>	
	</tr>
	<tr class="bg_row_odd" height="50">
		<td class="top" width="13%" align="center">备注</td>
		<td class="top" colspan=5><div class="txt_content" align="left"><%=tBean.getNotes()%>&nbsp;</div></td>	
	</tr>
	<tr class=bg_row_odd >
		<td class="top" width="13%" align="center">创建人</td>
		<td class="top"><div class="txt_content"><!--<%=tBean.getRecorderid()%>--><%=GSOperatorProcessor.getOperatorName(tBean.getRecorderid())%></div></td>	
		<td class="top" width="13%" align="center">创建时间</td>
		<td class="top" colspan=3><div class="txt_content"><%=tBean.getCreateTime()%>&nbsp;</div></td>	
	</tr>
	<!--应急定单，初审复审信息设置为空-->
	<tr class=bg_row_odd >
		<td class="top" width="13%" align="center">初审人</td>
		<td class="top"><div class="txt_content">&nbsp;</div></td>	
		<td class="top" width="13%" align="center">初审时间</td>
		<td class="top"><div class="txt_content">&nbsp;</div></td>	
		<td class="top" width="13%" align="center">初审意见</td>
		<td class="top"><div class="txt_content">&nbsp;</div></td>			
	</tr>		
	<tr class=bg_row_odd >
		<td class="top" width="13%" align="center">复审人</td>
		<td class="top"><div class="txt_content">&nbsp;</div></td>	
		<td class="top" width="13%" align="center">复审时间</td>
		<td class="top"><div class="txt_content">&nbsp;</div></td>	
		<td class="top" width="13%" align="center">复审意见</td>
		<td class="top"><div class="txt_content">&nbsp;</div></td>			
	</tr>		
	</tbody>
	</table>
	<br>
<%
	if(tStr != null){
%>
            	<table class=bg_table id=tableId cellspacing=0 cellpadding=1 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column"><td colspan="13" class=top><div align="left" class="txt_content"><b>当前所选采购明细信息</b></div></td></tr>
                    <tr class="bg_column" height=20> 
                        <td class=top align=middle><div align="center" class="txt_content">集中编码</div></td>                    
                        <td class=top align=middle><div align="center" class="txt_content">产品名称</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">规格</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">型号</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">品牌</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">订货数量</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">签收数量</div></td>						
                        <td class=top align=middle><div align="center" class="txt_content">供应商</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">设定价格（元）</div></td>						
                        <td class=top align=middle><div align="center" class="txt_content">签收价格（元）</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">签收总价格（元）</div></td>																																																																								
					</tr>
					<tr height=20 class="bg_row_odd">
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[0]%>&nbsp;</div></td>	
						<td class=top align=middle><div align="center" class="txt_content"><a href="<%=response.encodeURL(root + "/A100404.do?&concentricityId="+tStr[0])%>" target="_blank"><%=tStr[2]%></a></div></td>								
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[3]%>&nbsp;</div></td>
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[4]%>&nbsp;</div></td>	
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[5]%>&nbsp;</div></td>						
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[6]%><%=tStr[8] %>&nbsp;</div></td>								
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[7]%><%=tStr[8] %>&nbsp;</div></td>	
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[11]%>&nbsp;</div></td>	
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[9]%>&nbsp;</div></td>	
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[10]%>&nbsp;</div></td>	
						<td class=top align=middle><div align="center" class="txt_content"><%=tStr[14]%>&nbsp;</div></td>																	
					</tr> 	
								
					</tbody>
				</table>	
<br>							
<%	
	}
	if(tList != null){
%>
            	<table class=bg_table id=tableId	cellspacing=0 cellpadding=1 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column"><td colspan="13" class=top><div align="left" class="txt_content"><b>相同采购单中还有以下明细</b></div></td></tr>
                    <tr class="bg_column" height=20> 
                        <td class=top align=middle><div align="center" class="txt_content">集中编码</div></td>                    
                        <td class=top align=middle><div align="center" class="txt_content">产品名称</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">规格</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">型号</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">品牌</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">订货数量</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">签收数量</div></td>						
                        <td class=top align=middle><div align="center" class="txt_content">供应商</div></td>
                        <td class=top align=middle><div align="center" class="txt_content">设定价格（元）</div></td>						
                        <td class=top align=middle><div align="center" class="txt_content">签收价格（元）</div></td>
						<td class=top align=middle><div align="center" class="txt_content">签收总价格（元）</div></td>						
                       																																																																	
					</tr>				
					<%
						if(tList != null && tList.size() > 0){
						for(int i=0; i<tList.size(); i++){
							String[] tStr2 = (String[])tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
					%>
							<tr height=20 class="bg_row_odd">
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[0]%>&nbsp;</div></td>	
								<td class=top align=middle><div align="center" class="txt_content"><a href="<%=response.encodeURL(root + "/A100404.do?&concentricityId="+tStr2[0])%>" target="_blank"><%=tStr2[2]%></a></div></td>								
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[3]%>&nbsp;</div></td>
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[4]%>&nbsp;</div></td>	
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[5]%>&nbsp;</div></td>						
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[6]%><%=tStr2[8] %>&nbsp;</div></td>								
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[7]%><%=tStr2[8] %>&nbsp;</div></td>	
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[11]%>&nbsp;</div></td>	
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[9]%>&nbsp;</div></td>	
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[10]%>&nbsp;</div></td>	
								<td class=top align=middle><div align="center" class="txt_content"><%=tStr2[14]%>&nbsp;</div></td>																	
							</tr> 
							
					<%	
							}
						}else{
					%>
							<font color="red">没有符合条件的其它明细</font>
					<%
						}
					%>
					</tbody>
				</table>
<%		
	}
%>				
			</td>
		</tr>
	</table>
	</center>
</form>
<div id="noprint">
    <p align="center">  
<!--		<input type="image" src="images/button/guanbi.gif" width="58" height="24" class="box" onclick="window.close();"/>&nbsp;		-->
			<input type="button" class="kuang" value="关闭" onclick="window.close();">
    </p>
</div>
</html>
